﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MCPlatform.UI.Controls.Views
{
    /// <summary>
    /// WaveProgressBar.xaml 的交互逻辑
    /// </summary>
    public partial class WaveProgressBar : UserControl
    {
        public static readonly DependencyProperty ProgressProperty =
         DependencyProperty.Register("Progress", typeof(double), typeof(WaveProgressBar), new PropertyMetadata(0.0));

        public static readonly DependencyProperty WaveColorProperty =
            DependencyProperty.Register("WaveColor", typeof(Brush), typeof(WaveProgressBar), new PropertyMetadata(Brushes.LightBlue));

        public static readonly DependencyProperty RingColorProperty =
            DependencyProperty.Register("RingColor", typeof(Brush), typeof(WaveProgressBar), new PropertyMetadata(Brushes.DarkGray));

      


        public double Progress
        {
            get { return (double)GetValue(ProgressProperty); }
            set 
            { 

                SetValue(ProgressProperty, value);
                
            }
        }

        public Brush WaveColor
        {
            get { return (Brush)GetValue(WaveColorProperty); }
            set { SetValue(WaveColorProperty, value); }
        }

        public Brush RingColor
        {
            get { return (Brush)GetValue(RingColorProperty); }
            set { SetValue(RingColorProperty, value); }
        }

        public WaveProgressBar()
        {
            InitializeComponent();
        }
    }
}
